from contest.runtests import main
try:
    from cStringIO import StringIO
except ImportError:
    from io import StringIO
import time

if __name__ == '__main__':
    out = StringIO()
    rc = main(stream=out, verbosity=0)
    if rc:
        print(out.getvalue())
    print('{0} [{1}]'.format(time.ctime(), 'FAILED' if rc else 'OK'))
